home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2030 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: informatik.tu-muenchen.de!fischerj
  2. From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: CreateProc without LoadSeg
  5. Date: 26 Jan 1996 02:32:59 GMT
  6. Organization: Technische Universitaet Muenchen, Germany
  7. Distribution: world
  8. Message-ID: <4e9egr$ron@sunsystem5.informatik.tu-muenchen.de>
  9. NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12.  
  13. Using LoadSeg() for getting a 'seglist' the function CreateProc() needs,
  14. all works fine.
  15.  
  16. when using the 'faked' seglist a la RKM, I get a guru under OS3.0 (the
  17. guru tells the name of my created process, so createproc returned without
  18. error. so my created process crashes (well, somehow the OS jumps to wrong
  19. adress I guess). ).
  20.  
  21. I quote:
  22.  
  23. If you wish to fake a seglist, use this code:
  24.  
  25.    ds.l 0  ;align to long
  26.    dc.l 16 ;Segment "length" faked
  27.    dc.l 0  ;next segment
  28.    ....start of code...
  29.  
  30. well. "ds.l 0". what does this mean, my assembler is crap in handling that
  31. stuff.
  32.  
  33. so how does this "struc" look like ?
  34.  
  35. assuming label seglist is longword aligned.
  36.  
  37. is it this: 
  38.  
  39. seglist:
  40.    dc.l 16
  41.    dc.l 0
  42. mycode:
  43.  
  44. or is it:
  45.  
  46. seglist:
  47.    dc.l 0
  48.    dc.l 16
  49.    dc.l 0
  50. mycode:
  51.  
  52. well, _BOTH_ won't work :\ this is imho a RKM bug ("third edition").
  53.  
  54. how to get a subtask (a process) without loading a file ?
  55. I want to get the process running parts of my currently running code
  56. (not some code of some file).
  57.  
  58. ------------------------------------------------------------------------
  59.    fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)   =:)
  60.  
  61.